package main.java;
/**
 * @description:    将调用构造函数的代码改为调用工厂函数
 * @author:         cong zhi
 * @createDate:     2022/5/30 7:41
 * @updateUser:     cong zhi
 * @updateDate:     2022/5/30 7:41
 * @updateRemark:   修改内容
 * @version:        v1.0
 */
public class FactoryDemo {

    public static void main(String[] args) {
        Employee emp = Employee.create(Employee.ENGINEER);

        System.out.println("============="+emp);

    }
}
